//
//  ICMBalanceBasicInfoModel.m
//  ICrEAM
//
//  Created by kuroro on 16/11/27.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ICMBalanceBasicInfoModel.h"

@implementation ICMBalanceBasicInfoModel

- (void)setUpBalanceBasicInfoModelWithBalanceBasicInfoView:(ICMBalanceBasicInfoView *)balanceBasicInfoView{
    self.VIN = balanceBasicInfoView.vinNumberView.contentText;
    self.LICENSE = balanceBasicInfoView.plateNumberView.contentText;
    self.MODEL_CODE = balanceBasicInfoView.modelCodeView.contentText;
    self.SALES_DATE = balanceBasicInfoView.salesDateView.contentText;
    self.REMARK = balanceBasicInfoView.remarkView.contentText;
    self.RO_NO = balanceBasicInfoView.proxyNOView.contentText;
    self.RO_CREATE_DATE = balanceBasicInfoView.createDateView.contentText;
    self.OWNER_NAME = balanceBasicInfoView.ownerNameView.contentText;
    self.RO_REPAIR_TYPE_NAME = balanceBasicInfoView.repairTypeView.contentText;
    self.DELIVERER = balanceBasicInfoView.deliverNameView.contentText;
    self.DELIVERER_MOBILE = balanceBasicInfoView.deliverMobileView.contentText;
    self.USE_KIND = [ICrEAMTool getDeatilCodeWithParameterDesc:balanceBasicInfoView.useKindView.contentText withCode:@"2534"];
    self.BALANCE_TYPE = [ICrEAMTool getDeatilCodeWithParameterDesc:balanceBasicInfoView.accountsTypeView.contentText withCode:@"2192"];
    self.REPAIR_ORDER_TYPE_CODE = balanceBasicInfoView.levelView.noStr;
    self.TRACE_TIME = [ICrEAMTool getDeatilCodeWithParameterDesc:balanceBasicInfoView.visitDateView.contentText withCode:@"1125"];
    self.REVISIT_WAY = [ICrEAMTool getDeatilCodeWithParameterDesc:balanceBasicInfoView.visitTypeView.contentText withCode:@"2182"];
    self.NO_TRACE = [ICrEAMTool getDeatilCodeWithParameterDesc:balanceBasicInfoView.visitReasonView.contentText withCode:@"2183"];
    self.OLD_PART_PROCESS = [ICrEAMTool getDeatilCodeWithParameterDesc:balanceBasicInfoView.oldPartView.contentText withCode:@"2109"];
}

@end
